package c.e.a.b.f.b;

import android.os.Bundle;
import b.i.b.f;
import c.e.a.b.e.c.z7;
import com.google.android.gms.measurement.internal.zzaq;
import com.google.android.gms.measurement.internal.zzku;
import com.google.android.gms.measurement.internal.zzz;
import com.huawei.hms.jos.games.ranking.RankingConst;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class n6 implements Runnable {
    public final /* synthetic */ Bundle a;
    public final /* synthetic */ c6 b;

    public n6(c6 c6Var, Bundle bundle) {
        this.b = c6Var;
        this.a = bundle;
    }

    public final void run() {
        c6 c6Var = this.b;
        Bundle bundle = this.a;
        String str = HiAnalyticsConstant.BI_KEY_APP_ID;
        c6Var.g();
        c6Var.t();
        String str2 = "null reference";
        Objects.requireNonNull(bundle, str2);
        String str3 = RankingConst.RANKING_JGW_NAME;
        f.N(bundle.getString(str3));
        String str4 = "origin";
        f.N(bundle.getString(str4));
        String str5 = "value";
        Objects.requireNonNull(bundle.get(str5), str2);
        if (c6Var.a.i()) {
            zzku zzku = new zzku(bundle.getString(str3), bundle.getLong("triggered_timestamp"), bundle.get(str5), bundle.getString(str4));
            try {
                t9 k = c6Var.k();
                String string = bundle.getString(str);
                String string2 = bundle.getString("triggered_event_name");
                Bundle bundle2 = bundle.getBundle("triggered_event_params");
                String string3 = bundle.getString(str4);
                boolean z = z7.a() && c6Var.a.g.o(p.L0);
                zzaq B = k.B(string, string2, bundle2, string3, 0, true, z);
                t9 k2 = c6Var.k();
                string2 = bundle.getString(str);
                String string4 = bundle.getString("timed_out_event_name");
                Bundle bundle3 = bundle.getBundle("timed_out_event_params");
                String string5 = bundle.getString(str4);
                boolean z2 = z7.a() && c6Var.a.g.o(p.L0);
                zzaq B2 = k2.B(string2, string4, bundle3, string5, 0, true, z2);
                k2 = c6Var.k();
                string2 = bundle.getString(str);
                string4 = bundle.getString("expired_event_name");
                bundle3 = bundle.getBundle("expired_event_params");
                string5 = bundle.getString(str4);
                z2 = z7.a() && c6Var.a.g.o(p.L0);
                zzaq B3 = k2.B(string2, string4, bundle3, string5, 0, true, z2);
                str2 = bundle.getString(str);
                str3 = bundle.getString(str4);
                long j = bundle.getLong("creation_timestamp");
                String string6 = bundle.getString("trigger_event_name");
                long j2 = bundle.getLong("trigger_timeout");
                long j3 = bundle.getLong("time_to_live");
                zzz zzz = r3;
                zzz zzz2 = new zzz(str2, str3, zzku, j, false, string6, B2, j2, B, j3, B3);
                c6Var.p().y(zzz);
                return;
            } catch (IllegalArgumentException unused) {
                return;
            }
        }
        c6Var.d().n.a("Conditional property not set since app measurement is disabled");
    }
}
